package com.wellwan.cloud.configuration;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Copyright (C),微动天下
 * FileName: RibbonConfiguration
 * Author:   maokai
 * Date:     2020/2/22 15:39
 * Description:
 */
//@Configuration
public class RibbonConfiguration {
    @Bean
    public IRule ribbonRule() {
        return new RandomRule();
    }
}
